import request from '@/utils/request'

// 查询乘客信息列表
export function listPassengers(query) {
  return request({
    url: '/passengers/passengers/list',
    method: 'get',
    params: query
  })
}

// 查询乘客信息详细
export function getPassengers(id) {
  return request({
    url: '/passengers/passengers/' + id,
    method: 'get'
  })
}

// 新增乘客信息
export function addPassengers(data) {
  return request({
    url: '/passengers/passengers',
    method: 'post',
    data: data
  })
}

// 修改乘客信息
export function updatePassengers(data) {
  return request({
    url: '/passengers/passengers',
    method: 'put',
    data: data
  })
}

// 删除乘客信息
export function delPassengers(id) {
  return request({
    url: '/passengers/passengers/' + id,
    method: 'delete'
  })
}
